package net.caixiaomi.info.adapter;

import net.caixiaomi.info.R;
import net.caixiaomi.info.base.quickadapter.BaseQuickAdapter;
import net.caixiaomi.info.base.quickadapter.BaseViewHolder;
import net.caixiaomi.info.model.DiscoveryScorerMemberEntity;

/**
 * Created by mac on 2018/9/4.
 */

public class DiscoveryScorerListAdapter extends BaseQuickAdapter<DiscoveryScorerMemberEntity, BaseViewHolder> {
    public DiscoveryScorerListAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, DiscoveryScorerMemberEntity item) {
        try {
            helper.setText(R.id.scorer_name0,item.getSort());
            helper.setText(R.id.scorer_name1,item.getPlayerName());
            helper.setText(R.id.scorer_name2,item.getPlayerTeam());
            helper.setText(R.id.scorer_name3,item.getInNum());
            helper.setGone(R.id.discovery_scorer_padding,item.isLast());
        }catch (Exception e){

        }
    }
}
